package org.jetnuke.dao;


import java.util.List;

import org.jetnuke.entities.PictureVote;

public interface PictureVoteDAO {
	PictureVote retrieveByPK(int id) throws Exception;

	List selectByPicture(int pid) throws Exception;

	int addNew(PictureVote bc)throws Exception;

	List selectLastVoted(int limit)throws Exception;
	boolean alreadyVoted(int pid, int uid)throws Exception;

	void deleteByPID(int pid)throws Exception;
}
